import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const SUPPLY: AppRouteRecordRaw = {
  path: '/supply',
  name: 'supply',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: '供应科',
    icon: 'icon-archive',
    requiresAuth: true,
    order: 8,
  },
  children: [
    {
      path: 'manage',
      name: 'manage',
      component: () => import('@/views/supply/manage/index.vue'),
      meta: {
        locale: '供应管理',
        requiresAuth: true,
        roles: ['supply','admin'],
      },
    },
    {
      path: 'manageProductName',
      name: 'manageProductName',
      component: () => import('@/views/supply/productName/index.vue'),
      meta: {
        locale: '品名管理',
        requiresAuth: true,
        roles: ['supply','admin'],
      },
    },
     {
      path: 'manageGonghuo',
      name: 'manageGonghuo',
      component: () => import('@/views/supply/gonghuo/index.vue'),
      meta: {
        locale: '供货厂家',
        requiresAuth: true,
        roles: ['supply','admin'],
      },
    },
    {
      path: 'manageAddress',
      name: 'manageAddress',
      component: () => import('@/views/supply/address/index.vue'),
      meta: {
        locale: '存放地址',
        requiresAuth: true,
        roles: ['supply','admin'],
      },
    },
    {
      path: 'manageHouse',
      name: 'manageHouse',
      component: () => import('@/views/supply/house/index.vue'),
      meta: {
        locale: '库管管理',
        requiresAuth: true,
        roles: ['supply','admin'],
      },
    },
  ],
};

export default SUPPLY;
